package com.it.park.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.UserMsgService;
import com.it.park.dao.UserMsgMapper;
import com.it.park.model.UserMsg;

@Service("userMsgService")
public class UserMsgServiceImpl extends BaseServiceImpl<UserMsg> implements UserMsgService {
	
	@Autowired
	private  UserMsgMapper  userMsgMapper;

	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return userMsgMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(UserMsg record) {
		return userMsgMapper.insertSelective(record)==1;
	}
	@Override
	public UserMsg selectByPrimaryKey(Integer id) {
		return userMsgMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(UserMsg record) {
		return userMsgMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(UserMsg record) {
		return userMsgMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public boolean updateUserMsgStatus(UserMsg record) {
		return userMsgMapper.updateUserMsgStatus(record)==1;
	}
	

}
